package com.bdqn.t350.web;

import com.bdqn.t350.anno.RequestMapping;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class UserController {

    @RequestMapping(name = "t350", value = "/show")
    public void show(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("show...........");
        System.out.println(request.getParameter("id"));
        request.getRequestDispatcher("index.jsp").forward(request, response);
        //response.sendRedirect("http://www.baidu.com");
    }
}
